/*
 * Copyright (c) Hisilicon Technologies Co., Ltd. 2019-2019. All rights reserved.
 * Description: algadapter adas implementation
 * Author: HiMobileCam Reference Develop Team
 * Create: 2019-11-01
 */

#include "hi_algadapter_adas.h"
#include "hi_appcomm.h"

#ifdef CONFIG_ADAS_DUMMY_SUPPORT
#include "algadapter_adas_dummy.h"
#endif

#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* End of #ifdef __cplusplus */

HiAdasAlgorithm *HI_ALGADAPTER_GetAdasAlgorithm(HI_ALGADAPTER_AdasAlgorithmType algType)
{
    HiAdasAlgorithm *adasAlg = HI_NULL;
    switch (algType) {
        case HI_ALGADAPTER_ADAS_DUMMY:
#ifdef CONFIG_ADAS_DUMMY_SUPPORT
            adasAlg = ALGADAPTER_DUMMY_GetAdasAlgorithm();
#endif
            break;
        default:
            adasAlg = HI_NULL;
            MLOGE("algType(%d) err\n", algType);
            break;
    }

    return adasAlg;
}

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* End of #ifdef __cplusplus */
